package com.three.service;

import com.three.entity.Branch;
import com.three.vo.AddBranchVo;
import com.three.vo.BranchVo;
import com.three.vo.DzDiaoLiVo;
import com.three.vo.R;

public interface BranchService {
    public R getBranchName();
    //查询所有商铺信息和根据店长id查询店长名称
    R getAllAndName(Integer currentPage, Integer pageSize, BranchVo branchname);
    ///添加商铺
    R addBranch(AddBranchVo addBranch);
    //判断商铺编号是否重复
    R checkBranchid(Integer branchid);
    //判断商铺名称是否重复
    R checkBranchname(String branchname);
    //根据商铺id查询商铺信息
    R getBranchByBranchId(Integer branchid);
    //修改商铺信息
    R updateBranch(Branch branch);
    //修改商铺状态
    R updateState(Integer branchid, Integer state);
    //删除商铺根据商铺id删除
    R deleteBranch(Integer branchid);
    //修改店长将该员工改为店长
    R updateDianZhang(Integer branchid, Integer staffid);

    R getUserBranchName();

    R selectAll();

    ///店长调动 更换门店，更换职位，角色
    R dianZhangDiaoLi(DzDiaoLiVo dzDiaoLiVo);

    //得到当前登录人的商铺信息
    R getNewBranch();

    R getBranchName02();

    R getUserBranchId();
}
